#include "pch.h"
#include "ModelSceneNode.h"

void ModelSceneNode::Render(
		ID3D11DeviceContext1* Direct3DContext, 
		ModelViewProjectionConstantBuffer ModelViewProjectionBuffer,
		ID3D11Buffer* constantBuffer,
		ID3D11SamplerState* textureSampler,

		ShapeLibrary *shapeLibrary,
		TextureLibrary* textureLibrary,
		ShaderPairLibrary* shaderPairLibrary,
		ModelLibrary* modelLibrary)
{
	modelLibrary->GetModel(this->ModelID)
		        ->Render(
					Direct3DContext,
					ModelViewProjectionBuffer,
					constantBuffer,
					textureSampler,
					this->worldTransformation,

					shaderPairLibrary,
					textureLibrary,
					shapeLibrary);
}
